package part5;

/**
 * @author wcj
 * @Date 2021/5/13 15:53
 * @Version 1.0
 */
public class Part57 {

    /**
     * static修饰的成员变量和方法是属于类本身的而不是属于类的实例化对象的,只能通过类名.调用，无法通过实例化对象调用
     */
    private static int i = 10;

    private String name = "we";

    public static void main(String[] args) {
        System.out.println(Item.name);
        Part57 part57 = new Part57();
        System.out.println("name=" + part57.name);
    }

}

class Item {
    static String name = "火火";
}
